package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.ForwardBarcodeTraceInfoDO;
import xcmg.device.service.vo.report.ForwardInventoryQueryParamVO;
import xcmg.device.service.vo.report.ForwardInventoryReportVO;

import java.util.List;

@Mapper
public interface ForwardBarcodeTraceInfoMapper {
    int insert(ForwardBarcodeTraceInfoDO record);

    ForwardBarcodeTraceInfoDO selectByBelongAndOriginal(@Param("belongOrgId") String belongOrgId, @Param("originalOrgId") String originalOrgId);

    ForwardBarcodeTraceInfoDO selectByOriginalAndForwardBarcode(@Param("originalOrgId") String originalOrgId, @Param("forwardBarcode") String forwardBarcode);

    int updateBelongOrgid(@Param("originalOrgId") String originalOrgId,@Param("forwardBarcode") String forwardBarcode,@Param("belongOrgId") String belongOrgId);

    List<ForwardInventoryReportVO> forwardInventoryReport(@Param("materialsNo") String materialsNo,
                                                          @Param("materialsDes") String materialsDes,
                                                          @Param("maintenanceType") String maintenanceType,
                                                          @Param("belongOrgname") String belongOrgname,
                                                          @Param("barCodes") List<String> barCodes,
                                                          @Param("orignalOrgId") String orignalOrgId);
}